
//第三步
import VueRouter from 'vue-router'
//第二步
import account from './main/Account.vue'
import goodlist from './main/Goodlist.vue'
import login from './subcom/Login.vue'
import register from './subcom/Register.vue'



//第一步
var router = new VueRouter({
    routes:[
        {path: '/account',component: account,
    children:[
        {path:'login',component:login},
        {path:'register',component:register}
    ]
    
    },
        {path: '/goodlist',component: goodlist}
    ]
})
//4，把路由对象暴露出去
export default router